package com.hqyj.service;

import com.hqyj.excepiton.QuestionException;
import com.hqyj.pojo.Question;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.HashMap;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author rock
 * @since 2023-10-07
 */
public interface IQuestionService extends IService<Question> {

      //新增
      HashMap<String,Object> add(Question question) throws QuestionException;
    //删除
    HashMap<String,Object> del(Integer id) throws QuestionException;
    //修改
    HashMap<String,Object> update(Question question) throws QuestionException;
    //条件分页查询
    HashMap<String,Object> queryByPage(Question question) throws QuestionException;
    //分页缓存
    HashMap<String,Object> queryCacheByPage(Question question) throws QuestionException;

    //查询题库id，存入redis缓存中
    void queryQuId() ;


}
